<script setup lang="ts">
const emit = defineEmits<{
  (e: 'update:modelValue', val: number): void
}>()
defineProps<{
  modelValue: number
}>()
</script>

<template>
  <div class="com-page">com: modelValue: {{ modelValue }}</div>
  <button @click="emit('update:modelValue', 10)">改数字</button>
</template>

<style lang="scss" scoped></style>
